<?php 
// Generates a random string of default length 10
function generateRandomString ($length = 10)
{
  $random_string = "";
  $possible = "0123456789bcdfghjkmnpqrstvwxyz"; 

  $i = 0; 
    
  while ($i < $length) { 
 	// pick a random character from the possible ones
    $char = substr($possible, mt_rand(0, strlen($possible)-1), 1);
        
    // we don't want this character if it's already in the password
    if (!strstr($random_string, $char)) { 
      $random_string .= $char;
      $i++;
    }
  }

  // done!
  return $random_string;
}

//Connect Database
function dbConnect() {
	
	 $link = mysql_connect('cloudze.ipagemysql.com', 'bidbiz', '123'); 
if (!$link) { 
    die('Could not connect: ' . mysql_error()); 
} 

//echo 'Connected successfully'; 
mysql_select_db(bidbiz_1); 

}
?> 